#include "Basic_Static_lyvm.h"

extern HINSTANCE _hInst ;  // this instance is defined in DIVA_MAIN
extern HWND _hWnd ;        // this instance is defined in DIVA_Application

extern string valuableNames;
extern bool bRefIn;
extern bool bRefOut;
extern int level;
extern bool bCancel_sta;

BOOL CALLBACK StaticLayoutDialog( HWND, UINT, WPARAM, LPARAM);

void Basic_Static_lyvm::doLayout(DIVA_VM* startVM){
	/*TODO:change to Qt dialog*/
	//DialogBox( _hInst, "SLAYDIA", _hWnd, (DLGPROC)StaticLayoutDialog);
	if(bCancel_sta) return;
	_area = new Ly_influence_area(startVM, bRefIn, bRefOut, valuableNames, level);
	algorithm();
}